View Issue Details

IDProjectCategoryView StatusLast Update
0001555T99X171.00 SKB EagleSW Issuepublic2023-07-28 08:39
Reporter(ALTech) Younkwang Jung Assigned To(ALTech) Younkwang Jung Due Date
PrioritynormalSeveritys4-minorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0001555: [Smart3][ATV12] Request for review of app compress for free space
DescriptionHi Kerwin

There was a similar topic related to free space in "Google boot camp"

there was a comment as below.
" GTVS_COMPRESSED_PREBUILTS:= true "

jira is
https://jira.skbroadband.com/browse/FSTB12-3

Please check this information and review if it can be applied to ATV12

Thank you
YK.Jung
TagsNo tags attached.
Attach Tags

Users monitoring this issue

Activities

(SW) Jason Ling

2022-11-14 18:18

developer   ~0011225

Hi YK,

I've checked the keyword "GTVS_COMPRESSED_PREBUILTS" on ATV Help Center. I haven't found any thing related to this keywords.

Thanks,
Jason

(ALTech) Younkwang Jung

2022-11-15 17:01

developer   ~0011229

Hi Jason

I heard that there is a way to compress GTVS packages.
(this is already being applied and reviewed by INNOPIA)
Please search the Google site or contact Google for this method.

Please review if it can be applied to ATV12
Thank you
YK.Jung

(ALTech) Younkwang Jung

2022-11-16 15:29

developer   ~0011232

Hi Jason

This is additional information obtained through SKB.
Two apps were compressed in INNOPIA.
(webviewgoogle.apk / trichromlibrary.apk )

keyword is LOCAL_COMPRESSED_MODULE

Thank you
YK.Jung

(ALTech) Younkwang Jung

2022-11-21 14:36

developer   ~0011261

HI Jason

Please update me on the progress.
https://jira.skbroadband.com/browse/FSTB12-3

SKB wants to check if it takes longer to boot when compressed.

Thank you
YK.Jung

(ALTech) Younkwang Jung

2022-11-23 10:54

developer   ~0011284

HI Jason

Please update me on the progress.

Thank you!!

(SW) Kerwin Chen

2022-11-24 10:37

developer   ~0011298

Hi YK,

Below is the result after applying 'LOCAL_COMPRESSED_MODULE' flag on GTV packages

====== WebViewGoogle===========
10,574,698 product/app/WebViewGoogle/WebViewGoogle.apk
5,263,494 product/app/WebViewGoogle/WebViewGoogle.apk.gz

====== TrichromeLibrary===========
77,046,933 product/app/TrichromeLibrary/TrichromeLibrary.apk
45,044,811 product/app/TrichromeLibrary/TrichromeLibrary.apk.gz

And we don't see big difference on boot time.

(ALTech) Younkwang Jung

2022-11-24 12:14

developer   ~0011302

HI Kerwin

Please commit it to ATV12 branch
I need to check it on the log to see how much extra time it takes.

And SKB will check and finally decide whether to apply it or not.

Thank you
YK.Jung

(SW) Kerwin Chen

2022-11-24 12:34

developer   ~0011303

Hi YK,

It is pushed to BitBucket ATV12 branch.

(SW) Jason Ling

2022-12-19 08:52

developer   ~0011505

Hi YK,

The LOCAL_COMPRESSED_MODULE Settings has side effect on GTS

run gts -m GtsWebViewTestCases -t com.google.android.webview.gts.WebViewTest#testWebViewIsPreinstalled
run gts -m GtsWebViewTestCases -t com.google.android.webview.gts.WebViewTest#testWebViewIsSignedWithCorrectKeys
run gts -m GtsWebViewTestCases -t com.google.android.webview.gts.WebViewTest#testWebViewIsSystem

After revert this keyword "LOCAL_COMPRESSED_MODULE", we can PASS it.

Thanks.
Jason

(ALTech) Younkwang Jung

2022-12-19 09:51

developer   ~0011506

Hi Jason

I know that it's a function supported by Google, but it fails in the Google GTS test
And is there a way to use LOCAL_COMPRESSED_MODULE?

Because AmazonPrime app will be added. (approximately over 40M)

Thank you
YK.Jung

(SW) Jason Ling

2022-12-19 10:29

developer   ~0011509

Hi YK,

Regarding AmazonPrime, We recommend downloading it from a PAI or SKB server

if device upgrade to Android 12 without factory reset, it can be downloaded from SKB server
if device do factory reset, the AmazonPrimeVideo could be downloaded by PAI.

Base on the previous experience in other project, Amazon will ask OEM to put the AmazonPrimeVideo into PAI list after the device PASS AmazonPrimeVideo certification (even OEM has already pre-built it)
(Because Amazon hope that user can get the latest app version)

Thanks,
Jason

(ALTech) Younkwang Jung

2022-12-19 13:10

developer   ~0011517

Hi Jason

I just talked with SKB Manager and he said that the application rule for Amazon Prime App are not fixed yet.
As I checked now, there is a free space of 8.5M at ATV12. we need to more free space than this.

First , please review how to can Google test pass after compress

If you can't compress for free space, please apply the part in the "free space" and "skip" item in the google excel link below.
https://docs.google.com/spreadsheets/d/1rheB38TCjl0_aYok0E8FfTFg1PlWOMt22CH2PKzrUD4/edit#gid=188263279

Thank you
YK.Jung

(ALTech) Younkwang Jung

2022-12-19 15:45

developer   ~0011521

Hi Jason

SKB and SPTEK will want to know those fail items.
Please share the the test sheet and the log.

The strange thing is that INTEK doesn't seem to see any issues related to this.

Thank you
YK.Jung

(SW) Jason Ling

2022-12-20 08:55

developer   ~0011527

Hi YK,

We've reverted the patch regarding LOCAL_COMPRESSED_MODULE.
Current code in SKB bitbucket doesn't include LOCAL_COMPRESSED_MODULE.

If we set it again, we will encounter 3 GTS webview failures
run gts -m GtsWebViewTestCases -t com.google.android.webview.gts.WebViewTest#testWebViewIsPreinstalled
run gts -m GtsWebViewTestCases -t com.google.android.webview.gts.WebViewTest#testWebViewIsSignedWithCorrectKeys
run gts -m GtsWebViewTestCases -t com.google.android.webview.gts.WebViewTest#testWebViewIsSystem

Please refer to the attachments.

Thanks,
Jason
webview.jpg (450,810 bytes)
webview-log.zip (390,156 bytes)

(ALTech) JunGyu Kim

2023-03-03 18:19

developer   ~0012428

Hi Jason,

Digicap found an issue that zemkids is not updated when upgrade FW by USB.
I found the parse error shown when the boot up.
Because of this, it seems that the apk in the STB is not updated when the compressed apk is updated.

========================================================================================================================================================================
03-03 17:33:47.997 3785 3785 W PackageManager: Failed to parse /system/app/SKB_ZemKids_SMART3_foxconn: Missing base APK in /system/app/SKB_ZemKids_SMART3_foxconn
03-03 17:33:48.017 3785 3785 I PackageManager: getCompressedFiles[/system/app/SKB_ZemKids_SMART3_foxconn-Stub]: [/system/app/SKB_ZemKids_SMART3_foxconn/SKB_ZemKids_SMART3_foxconn.apk.gz]
03-03 17:33:48.018 3785 3785 W PackageManager: Failed to scan /system/app/SKB_ZemKids_SMART3_foxconn-Stub: Package com.skb.zemkids at /system/app/SKB_ZemKids_SMART3_foxconn-Stub ignored: updated version 279 better than this 1
========================================================================================================================================================================

Please check this issue.

Thank you.
Kim

(ALTech) JunGyu Kim

2023-03-08 19:25

developer   ~0012475

Hi Jason,

Please let me know any update.

Thank you.
Kim

(ALTech) Younkwang Jung

2023-04-25 08:43

developer   ~0012986

Hi Jason

INNOPIA has zemkids app compressed. after that, it is said that the new version will be updated normally.
In other words, there seems to be a way to solve the issue even after compressing the zemkids app.
Please review the zemkids apk compression again.

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-04-25 18:20

developer   ~0013000

Hi Jason

JIRA(zemkids compression(stub) issue) is
https://jira.skbroadband.com/browse/BPM-15742

FW1 15.537.16 include zemkids version (r6270)
FW2 15.537.18 include zemkids version (r6313)

If you update from FW1 to FW2
The FW version was 15.537.18, but the zemkids version had an issue that was displayed as r6270.

Thank you
YK.Jung

(SW) Jason Ling

2023-04-26 15:59

developer   ~0013015

Hi YK,

the root cause is when Zemkids is released (Digicap also updated the version code)
and the version code of Zemkids -stub.apk also need to be updated.

Please let me know how to address it.
Because we don't know the release plan of ZemKid, we can not always help DigiCap to update version code of Zemkids -stub.apk.

I think Digicap can write Zemkids -stub.apk by themselves and sync the version code with Zemkids when they release the new ZemKids.

Thanks,
Jason

(ALTech) Younkwang Jung

2023-04-27 09:01

developer   ~0013019

Hi Jason

This part is progressing differently for each manufacturer.
Can you automatically make a -stub.apk file by reading the zemkids version code every time FXN build?

Thank you
YK.Jung

(SW) Jason Ling

2023-04-27 10:47

developer   ~0013023

Hi YK,

Done and I've also enabled compressed ZemKids feature in current code base.

Thanks,
Jason

(ALTech) Younkwang Jung

2023-07-28 08:39

developer   ~0013749

Hi Jason

Thank you for your support ,
I will close this ticket

YK.Jung

Issue History

Date Modified Username Field Change
2022-11-14 09:41 (ALTech) Younkwang Jung New Issue
2022-11-14 09:41 (ALTech) Younkwang Jung Assigned To => (SW) Kerwin Chen
2022-11-14 09:41 (ALTech) Younkwang Jung Status new => assigned
2022-11-14 09:42 (ALTech) Younkwang Jung Description Updated View Revisions
2022-11-14 09:42 (ALTech) Younkwang Jung Issue Monitored: (ALTech) SY Yoon
2022-11-14 09:42 (ALTech) Younkwang Jung Issue Monitored: (ALTech) JunGyu Kim
2022-11-14 18:07 (SW) Kerwin Chen Assigned To (SW) Kerwin Chen => (SW) Jason Ling
2022-11-14 18:18 (SW) Jason Ling Note Added: 0011225
2022-11-14 18:18 (SW) Jason Ling Issue Monitored: (SW) Kerwin Chen
2022-11-15 17:01 (ALTech) Younkwang Jung Note Added: 0011229
2022-11-16 15:29 (ALTech) Younkwang Jung Note Added: 0011232
2022-11-21 14:36 (ALTech) Younkwang Jung Note Added: 0011261
2022-11-23 10:54 (ALTech) Younkwang Jung Note Added: 0011284
2022-11-24 10:37 (SW) Kerwin Chen Note Added: 0011298
2022-11-24 12:14 (ALTech) Younkwang Jung Note Added: 0011302
2022-11-24 12:34 (SW) Kerwin Chen Note Added: 0011303
2022-12-19 08:52 (SW) Jason Ling Assigned To (SW) Jason Ling => (ALTech) Younkwang Jung
2022-12-19 08:52 (SW) Jason Ling Note Added: 0011505
2022-12-19 09:51 (ALTech) Younkwang Jung Note Added: 0011506
2022-12-19 10:29 (SW) Jason Ling Note Added: 0011509
2022-12-19 13:10 (ALTech) Younkwang Jung Note Added: 0011517
2022-12-19 15:45 (ALTech) Younkwang Jung Note Added: 0011521
2022-12-20 08:55 (SW) Jason Ling Note Added: 0011527
2022-12-20 08:55 (SW) Jason Ling File Added: webview.jpg
2022-12-20 08:55 (SW) Jason Ling File Added: webview-log.zip
2023-03-03 18:19 (ALTech) JunGyu Kim Note Added: 0012428
2023-03-08 19:25 (ALTech) JunGyu Kim Note Added: 0012475
2023-04-25 08:43 (ALTech) Younkwang Jung Note Added: 0012986
2023-04-25 18:20 (ALTech) Younkwang Jung Note Added: 0013000
2023-04-26 15:59 (SW) Jason Ling Note Added: 0013015
2023-04-27 09:01 (ALTech) Younkwang Jung Note Added: 0013019
2023-04-27 10:47 (SW) Jason Ling Note Added: 0013023
2023-07-28 08:39 (ALTech) Younkwang Jung Note Added: 0013749
2023-07-28 08:39 (ALTech) Younkwang Jung Status assigned => closed
2023-07-28 08:39 (ALTech) Younkwang Jung Resolution open => fixed